import { GlobEnvConfig } from '../types/config';
import { getEnv, getGlobEnvConfig } from './env';

// const { VUE_APP_API_URL, VUE_APP_WECHAT_APP_ID, VUE_APP_WEB_URL } = process.env
const {
  VITE_API_URL,
  VITE_APP_SHORT_NAME,
  VITE_APP_TITLE,
  VITE_API_URL_PREFIX,
  VITE_WECHAT_APP_ID,
  VITE_UPLOAD_URL,
} = getGlobEnvConfig();

// export const NODE_ENV: string = process.env.NODE_ENV // 环境变量

// export const WEB_URL: string = VUE_APP_WEB_URL // 网页url

// export const API_URL: string = VUE_APP_API_URL // 接口url

// export const WECHAT_APP_ID: string = VUE_APP_WECHAT_APP_ID // 公众号appId

export const NODE_ENV: string = getEnv();

export const WEB_URL: string = 'kfm.xinde.org';

export const API_URL: string = VITE_API_URL;

export const WEB_TITLE: string = VITE_APP_TITLE;

export const WEB_SHORT_NAME: string = VITE_APP_SHORT_NAME;

export const API_PREFIX: string | undefined = VITE_API_URL_PREFIX;

export const WECHAT_APP_ID: string = VITE_WECHAT_APP_ID;

export const LOGIN_STATUS = 'Login_Status'; // 登录态 0 1 2 Number

export const ACCESS_TOKEN = 'Access_Token'; // accessToken String

export const MY_INTENTION = 'MYINTENTION';

export const USER_INFO = 'USER_INFO'; // 用户信息 {} Object

export const PROJECT_SETTING = 'PROJECT_SETTING';

export const SCOPE_NUMBER = 'SCOPE_NUMBER';
